﻿@using QDT.Common
@using QDT.Web.Admin.Models
@model IPagedList<ArticleModel>
<div class="main_title">文章列表</div>
<div class="blank5"></div>
<div class="button_row">
    <a href="javascript:;" onclick="foreverdel();" class="button">彻底删除</a>
    <a href="javascript:;" onclick="restore();" class="button">恢复</a>
</div>
<div class="blank5"></div>
    <div class="grid_box">
        <div class="grid_top"></div>

        <!-- Think 系统列表组件开始 -->
        @Html.Grid(Model).Columns(column =>
   {
       column.CheckBox(o => o.Id);
       column.For(x => x.Id).Named("编号").SortColumnName("ID");
       column.For(x => x.Title).Named("名称").SortColumnName("Title");

       column.Buttons(btns => btns.Add(x => Html.ScriptLink("彻底删除", "foreverdel({0})".FormatWith(x.Id)))
                                  .Add(o => Html.ScriptLink("恢复", "restore({0})".FormatWith(o.Id))));
   }).Complex(ViewData)
        <!-- Think 系统列表组件结束 -->
 

        <div class="blank5"></div>
        @Html.Pager(Model)
    </div>
